package com.action;
import com.model.Student;
import com.service.StudentService;  

import com.opensymphony.xwork2.ActionSupport;  
public class deleteAction extends ActionSupport {
	 private Student  student;  
	    private StudentService studentService;  
      
    public Student getUser() {  
        return student;  
    }  
  
    public void setUser(Student student) {  
        this.student= student;  
    }  
  
    public StudentService getUserService() {  
        return studentService;  
    }  
  
    public void setUserService(StudentService studentService) {  
        this.studentService = studentService;  
    }  
  
    @Override  
    public String execute() throws Exception {  
        this.studentService.delete(student);  
        return SUCCESS;  
    }  
}
